package com.lesson14.observe.ex;

/**
 * @author 朝花不迟暮
 * @version 1.0
 * @date 2020/10/2 14:11
 */

//具体的主题对象
public class ConcreteSubject extends Subject
{
    private int state;

    public int getState()
    {
        return state;
    }

    public void setState(int state)
    {
        this.state = state;
        this.notifyAllObserver();
    }
}
